﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AbyssCombatLogger
{
    public class ReportingEvent
    {
        string targetName;

        public string TargetName
        {
            get { return targetName; }
            set { targetName = value; }
        }
        long amount;

        public long Amount
        {
            get { return amount; }
            set { amount = value; }
        }
    }

    public class ReportingEventComparer : Comparer<ReportingEvent>
    {
        public ReportingEventComparer()
        {
        }
        /// <summary>
        /// Sorts by highest to lowest, by the indicated statistical measurement
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        public override int Compare(ReportingEvent x, ReportingEvent y)
        {
            return y.Amount.CompareTo(x.Amount);
        }
    }
}
